package demo.bean;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;


public class ValidBean  {
	
	@NotBlank(message="name blank")
	@Size(min=3,max=9,message="name length 3~9")
	private String name;
	
	@Max(value=120, message="age max 120")
	@Min(value=3, message="age min 3")
	private Integer age;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getAge() {
		return age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}
	
			
	
	
}
